<!doctype html>
<html>
<head>
    <title>Hello AngularJS</title>
    <link href="webjars/bootstrap/3.2.0/less/bootstrap.less" rel="stylesheet">
    <link href="webjars/bootstrap/3.2.0/css/bootstrap.css" rel="stylesheet">
    <style type="text/css">
        [ng\:cloak], [ng-cloak], .ng-cloak {
            display: none !important;
        }
    </style>
</head>

<body ng-app="admin" ng-cloak class="ng-cloak" ng-controller="home as home">
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <ul class="nav navbar-nav">
            <li>
                <a href="#/" class="navbar-primary" ng-click="home.home()">home</a>
            </li>
            <li>
                <a href="#/" class="navbar-primary" ng-click="home.changes()">changes</a>
            </li>
            <p class="navbar-text navbar-right" ng-show="home.authenticated">
                Signed in as <a href="#/" class="navbar-link">{{home.user.name}}</a>
            </p>
        </ul>
    </div>
</nav>

<div class="container">
    <h1>admin</h1>
    <div ng-show="home.authenticated" ng-include="home.template"></div>
    <div ng-show="!home.authenticated" ng-include="unauthenticated.html"></div>
</div>

<script src="webjars/jquery/2.1.1/jquery.min.js" type="text/javascript"></script>
<script src="webjars/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
<script src="webjars/angularjs/1.3.8/angular.min.js" type="text/javascript"></script>
<script src="webjars/angularjs/1.3.8/angular-route.min.js" type="text/javascript"></script>
<script src="js/hello.js"></script>
</body>
</html>
